package com.genius.adminmanager.menu.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class LoadMenus implements ApplicationRunner{
	private  Logger logger = LoggerFactory.getLogger(LoadMenus.class);
	@Override
	public void run(ApplicationArguments args) throws Exception {
		logger.info("启动加载菜单树...");
		MenuService.loadMenusRAM();
    	logger.info("加载菜单树完毕...");
	}
	
}
